/**  
* @Title: UserPO.java
* @Package cn.net.mtons.persist.entity.po
* @Description: TODO
* @author ma jinjian  
* @date 2015年12月19日 下午7:20:30
* @version V1.0  
*/ 
package cn.net.mtons.model.entity.po;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;

/**
 * @ClassName: UserPO
 * @Description: TODO
 * @author ma jinjian
 * @date 2015年12月19日 下午7:20:30
 *
 */
@Entity(name="user")
public class UserPO {
	
	
	private long id;
	
	private String account;
	
	private String password;
	
	private String name;
	
	private String sex;

	private String email;
	
	private String address;
	
	private Date birth;
	
	private String telephone;
	
	private String photo;
	
	private boolean isonline;

	@Id
	@Column(name="user_id", nullable=false, columnDefinition="int")
	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

	@Column(name="user_account", nullable=false)
	public String getAccount() {
		return account;
	}

	public void setAccount(String account) {
		this.account = account;
	}

	@Column(name="user_password", nullable=false)
	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	@Column(name="user_name", nullable=false)
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@Column(name="user_sex", nullable=false)
	public String getSex() {
		return sex;
	}

	public void setSex(String sex) {
		this.sex = sex;
	}

	@Column(name="user_email", nullable=false)
	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	@Column(name="user_address", nullable=false)
	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	@Column(name="user_birth", nullable=false)
	public Date getBirth() {
		return birth;
	}

	public void setBirth(Date birth) {
		this.birth = birth;
	}

	@Column(name="user_tel", nullable=false)
	public String getTelephone() {
		return telephone;
	}

	public void setTelephone(String telephone) {
		this.telephone = telephone;
	}

	@Column(name="user_photo", nullable=false)
	public String getPhoto() {
		return photo;
	}

	public void setPhoto(String photo) {
		this.photo = photo;
	}

	@Column(name="user_isonline", nullable=false)
	public boolean isIsonline() {
		return isonline;
	}

	public void setIsonline(boolean isonline) {
		this.isonline = isonline;
	}

	@Override
	public String toString() {
		return "UserPO [id=" + id + ", account=" + account + ", password="
				+ password + ", name=" + name + ", sex=" + sex + ", email="
				+ email + ", address=" + address + ", birth=" + birth
				+ ", telephone=" + telephone + ", photo=" + photo
				+ ", isonline=" + isonline + "]";
	}
}
